package com.sys.basics.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.sys.basics.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;


/**
 * @author: ares
 * @date: 2021-09-28
 * @description: 用户表 Mapper 接口
 */
@Mapper
public interface SysUserDao extends BaseMapper<SysUser> {

    SysUser getCurrentUserInfoWithRoleAndOrg(Long userId);

    IPage<SysUser> getPagesByOrg(Page<SysUser> page, @Param("orgId") Long orgId, @Param("userParams")  SysUser userParams);

}
